package com.fh.modules.quartz.job;

import com.fh.common.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Qiu,Junda
 * @date 2019年4月3日
 * @description 示例不带参定时任务
 */
@Slf4j
public class SampleJob implements Job {

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		log.info(String.format("start普通定时任务 SampleJob !  时间:" + DateUtils.getTimestamp()));
		try {
			Thread.sleep(6000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		log.info(String.format("end普通定时任务 SampleJob !  时间:" + DateUtils.getTimestamp()));
	}
}
